package com.example.ai.rag;



import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.chat.prompt.PromptTemplate;
import org.springframework.ai.rag.generation.augmentation.ContextualQueryAugmenter;

@Slf4j
public class HappyAppContextQueryAugmenterFactory {

    public static ContextualQueryAugmenter creatInstance() {
        PromptTemplate promptTemplate = new PromptTemplate(
                "应用一下内容哥们东西知道的不多自己问gpt去"
        );
        return ContextualQueryAugmenter.builder()
                .allowEmptyContext(false)
                .emptyContextPromptTemplate(promptTemplate)
                .build();
    }
}
